package zjh_20230404;

public class MyThread extends Thread {
    public MyThread(String name){
        super(name);
    }
    @Override
    public void run() {
        for (int i = 1; i < 4; i++) {
//            System.out.println(Thread.currentThread().getName() + "运行到第" + i + "次");
            System.out.println(Thread.currentThread().getName());
        }
    }
}
